package visiopuce.action;

import org.eclipse.jface.action.Action;

import visiopuce.ICommandIds;
import visiopuce.service.document.FeuilleCotationCSVFinal;

public class CreerFicherCotationAction extends Action {



	public CreerFicherCotationAction(String text) {
		super(text);
		// The id is used to refer to the action in a menu or toolbar
		setId(ICommandIds.CMD_CREER_FEUILLES_COTATION);
		// Associate the action with a pre-defined command, to allow key
		// bindings.
		setActionDefinitionId(ICommandIds.CMD_CREER_FEUILLES_COTATION);
		setText("Créer les feuilles de cotation");
		setImageDescriptor(visiopuce.Activator.getImageDescriptor("/icons/envoyerCotation2.png"));

	}

	public void run() {
		FeuilleCotationCSVFinal cotations = new FeuilleCotationCSVFinal();
		cotations.createDocument();
	}
}